import request from '@/utils/request'

// 查询收益流水列表
export function listIncome(query) {
  return request({
    url: '/business/income/list',
    method: 'get',
    params: query
  })
}

// 查询收益流水详细
export function getIncome(logId) {
  return request({
    url: '/business/income/' + logId,
    method: 'get'
  })
}

// 新增收益流水
export function addIncome(data) {
  return request({
    url: '/business/income',
    method: 'post',
    data: data
  })
}

// 修改收益流水
export function updateIncome(data) {
  return request({
    url: '/business/income',
    method: 'put',
    data: data
  })
}

// 删除收益流水
export function delIncome(logId) {
  return request({
    url: '/business/income/' + logId,
    method: 'delete'
  })
}
